package cn.tiga.system.domain;

import java.util.ArrayList;
import java.util.List;

import cn.tiga.basic.domain.BaseDomain;
import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author pping
 * @since 2022-08-02
 */
@Data
public class Menu extends BaseDomain {

    private String name;
    private String component;
    private String url;
    private String icon;
    private Integer index;
    private Long parentId;
    private Long  intro;
    private Long state;
    // 父级部门对应id的所有子员工
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    public List<Menu> children = new ArrayList<>();

}
